package com.zycfc.zsf.boot.office.excel.bean;

import java.io.*;

public class ExcelColumnModel implements Serializable, Comparable<ExcelColumnModel>
{
    private static final long serialVersionUID = 5061439706317393850L;
    private Integer colNo;
    private String colEnName;
    private String colCnName;
    private Class colClass;
    private String colDateFormat;
    
    public ExcelColumnModel() {
    }
    
    public ExcelColumnModel(final Integer colNo, final String colEnName, final String colCnName) {
        this.colNo = colNo;
        this.colEnName = colEnName;
        this.colCnName = colCnName;
    }
    
    private ExcelColumnModel(final Integer colNo, final String colEnName, final String colCnName, final Class colClass) {
        this.colNo = colNo;
        this.colEnName = colEnName;
        this.colCnName = colCnName;
        this.colClass = colClass;
    }
    
    private ExcelColumnModel(final Integer colNo, final String colEnName, final String colCnName, final Class colClass, final String colDateFormat) {
        this.colNo = colNo;
        this.colEnName = colEnName;
        this.colCnName = colCnName;
        this.colClass = colClass;
        this.colDateFormat = colDateFormat;
    }
    
    @Override
    public int compareTo(final ExcelColumnModel o) {
        return (this.colNo > o.colNo) ? 1 : ((this.colNo < o.colNo) ? -1 : 0);
    }
    
    public Integer getColNo() {
        return this.colNo;
    }
    
    public void setColNo(final Integer colNo) {
        this.colNo = colNo;
    }
    
    public String getColEnName() {
        return this.colEnName;
    }
    
    public void setColEnName(final String colEnName) {
        this.colEnName = colEnName;
    }
    
    public String getColCnName() {
        return this.colCnName;
    }
    
    public void setColCnName(final String colCnName) {
        this.colCnName = colCnName;
    }
    
    private Class getColClass() {
        return this.colClass;
    }
    
    private void setColClass(final Class colClass) {
        this.colClass = colClass;
    }
    
    private String getColDateFormat() {
        return this.colDateFormat;
    }
    
    private void setColDateFormat(final String colDateFormat) {
        this.colDateFormat = colDateFormat;
    }
}
